using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommerceOne.Domains.IRepositories;
using CommerceOne.Models.Entities;
namespace CommerceOne.Domains.SqlRepositories
{
    public class SqlProductPhotoRepository : SqlRepositoryBase, IProductPhotoRepository
    {
        public List<ProductPhoto> GetAll()
        {
            return this.SqlContext.ProductPhotoes.ToList();
        }

        #region Singleton Instance
        private static SqlProductPhotoRepository _instance;
        public static SqlProductPhotoRepository Instance
        {
            get
            {
                if (_instance == null) _instance = new SqlProductPhotoRepository();
                return _instance;
            }
        }
        #endregion

    }
} 
